﻿CREATE PROCEDURE [dbo].[Forum_Section_Get] 
	@fromLevel TINYINT,
	@tillLevel TINYINT
AS
BEGIN
	SELECT [SectionId]
				,[ParentSectionId]
				,[LeftKey]
				,[Level]
				,[HashTag]
				,[Name]
	FROM [dbo].[forum_Section]
	WHERE [Level] >= @fromLevel AND [Level] <= @tillLevel
	ORDER BY [LeftKey], [Level]
END